package com.fy.dao;


import com.fy.entity.Fy_info;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface Fy_infoMapper {
    @Select("select * from fy_info")
    List<Fy_info> findAll();
    @Insert("INSERT into fy_info(fy_name,fy_id,fy_eassy,fy_pic,cr_info,fy_type,fy_intro,fm) values(#{fy_name},#{fy_id},#{fy_eassy},#{fy_pic},#{cr_info},#{fy_type},#{fy_intro},#{fm})")
    int insert_fy_info(@Param("fy_name") String fy_name,@Param("fy_id") String fy_id,
                       @Param("fy_eassy") String fy_eassy,@Param("fy_pic") String fy_pic,
                       @Param("cr_info") String cr_info,@Param("fy_type") String fy_type,
                       @Param("fy_intro") String fy_intro,@Param("fm") String fm);
}
